package chapter2;

import java.util.Arrays;

public class Chapter2Main {

    public static void main(String[] args) {
//        int[] A = new int[]{31, 41, 59, 26, 41, 58};
//        insertionSort(A);
//        System.out.println(Arrays.toString(A));

//        int[] a = new int[]{1, 0, 0};
//        int[] b = new int[]{1, 1, 1};
//        int[] c = add(a, b);
//        System.out.println(Arrays.toString(c));

//        int[] A = new int[]{31, 41, 59, 26, 41, 58};
//        selectSort(A);
//        System.out.println(Arrays.toString(A));

//        int[] A = new int[]{31, 41, 59, 26, 41, 58};
//        mergeSort(A, 0, A.length - 1);
//        System.out.println(Arrays.toString(A));

        int[] A = new int[]{31, 41, 59, 26, 41, 58};
        InsertionSort.insertionSort(A);
        System.out.println(Arrays.toString(A));

//        int[] A = new int[]{31, 41, 59, 26, 41, 58};
//        halfSearch(A, 58, 0, A.length - 1);
//        System.out.println(flag);

//        int[] A = new int[]{26, 31, 41, 41, 58, 59};
//        int l = 0, r = A.length - 1, n = 1;
//        halfSearch(A, n, l, r);
//        System.out.println(flag);

//        int[] A = new int[]{26, 31, 41, 41, 58, 59};
//        System.out.println(HalfSearch.contains(A, 72));
//
//        BubbleSort.bubbleSort(A);
//        System.out.println(Arrays.toString(A));
    }


}
